<?php
session_start();
include('header.php');
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Register</title>
<link rel="stylesheet" type="text/css" href="tppStyles.css" />
</head>
<body><center>
    <a href = "index.php">
            <img src = "tppheaderbanner.jpg" alt = "The Portal Project" /> </a>


    <?php
    if (isset($errorMessage))
        echo "<p><font color=\"red\">$errorMessage</font></p>";

    ?>


<!--    <form method="post" action=" manageRegister.php">-->
<form method ="post" action="login.php">
    <table>
    <tr><td>*First Name:</td><td><input type="text" name="firstName" <?php if (isset($_POST[firstName])) echo "value=\"$_POST[firstName]\""; ?> /></td></tr>
    <tr><td>Last Name:</td><td><input type="text" name="lastName" <?php if (isset($_POST[lastName])) echo "value=\"$_POST[lastName]\""; ?>  /></td></tr>
    <tr><td>*Username:</td><td><input type="text" name="username"  <?php if (isset($_POST[username])) echo "value=\"$_POST[username]\""; ?>  /></td></tr>
    <tr><td>*Password:</td><td><input type="password" name="password" /></td></tr>
    <tr><td>*Re-enter Password:</td><td><input type="password" name="password2" /></td></tr>
    <tr><td>*Email:</td><td><input type="text" name="email"  <?php if (isset($_POST[email])) echo "value=\"$_POST[email]\""; ?>  /></td></tr>
    <tr><td>*Birth Date (MM/DD/YYYY):</td><td><input type="text" name="birthmonth" size=2  <?php if (isset($_POST[birthMonth])) echo "value=\"$_POST[birthMonth]\""; ?>  /><input type="text" name="birthday" size=2  <?php if (isset($_POST[birthDay])) echo "value=\"$_POST[birthDay]\""; ?>  /><input type="text" name="birthyear" size=4  <?php if (isset($_POST[birthYear])) echo "value=\"$_POST[birthYear]\""; ?>  /></td></tr>
    <tr><td>Sex:</td><td>Gal <input type="radio" name="sex" value="F"  /> Guy <input type="radio" name="sex" value="M" /></td></tr>
    <tr><td>Phone Number:</td><td><input type="text" name="phone"  <?php if (isset($_POST[phone])) echo "value=\"$_POST[phone]\""; ?>  /></td></tr>
    <tr><td>Street:</td><td><input type="text" name="street"  <?php if (isset($_POST[street])) echo "value=\"$_POST[street]\""; ?>  /></td></tr>
    <tr><td>Zip Code:</td><td><input type="text" name="zip" <?php if (isset($_POST[zip])) echo "value=\"$_POST[zip]\""; ?>  /></td></tr>
    <tr><td>State:</td><td><input type="text" name="state" <?php if (isset($_POST[state])) echo "value=\"$_POST[state]\""; ?>  /></td></tr>
    <tr><td>School:</td><td><input type="text" name="school" <?php if (isset($_POST[school])) echo "value=\"$_POST[school]\""; ?>  /></td></tr>
    <tr><td><center><input type="reset" value="Reset Values" /></center></td><td><center><input name="submit" type="submit" value="Submit" /></center></td></tr>
    </table></form>
</center>


    </body>
</html>